package acme.entity;

public class DailyDeal implements Entity{
	
	private String dailyDealId = null;
	private String discountPercentage = null;
	private Product product = null;
	
	public DailyDeal(){}
	
	public DailyDeal(String id, Product product, String discount){
		dailyDealId = id;
		this.product = product;
		this.discountPercentage = discount;
	}
	
	@Override
	public String getId() {
		return dailyDealId;
	}

	public String getDiscountPercentage() {
		return discountPercentage;
	}

	public Product getProduct() {
		return product;
	}

	@Override
	public String getUrl() {
		return getProduct().getUrl();
	}
	
}
